<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<s:form id="navigation_form" action="type_headNavigationMap.go" namespace="/control/mapping">
		<input type="hidden" id="book_type_id" name="bookTypeId">
		<input type="hidden" id="book_type_name" name="bookTypeName">
		<table width="100%" border="0">
			<tr>
				<td colspan="5">导航:
					<a onclick="changeContent('/control/mapping/type_headNavigation.go','typeId=')">
							<b>顶级目录</b>
					</a>
					<s:iterator var="item" value="mapNavigation">
						>><a  onclick="changeContent('/control/mapping/type_headNavigation.go','typeId=${item.key}')">
							<b>${item.value}</b>
						</a>
					</s:iterator>
				</td>
			</tr>
			<tr>
				<s:iterator value="types" var="_type" status="loop">
				<td>
					<input type="checkbox" title="bookType" name="navigationType" value="${_type.id}">
					<c:if test="${fn:length(_type.types)>0}">
						<a onclick="changeContent('/control/mapping/type_headNavigation.go','typeId=${_type.id}')">
							<b>${_type.name}</b>
						</a>
					</c:if>
					<c:if test="${fn:length(_type.types)==0}">
						${_type.name}
					</c:if>
					</td>
					<c:if test="${loop.count%5==0}"></tr><tr></c:if>
				</s:iterator>
			</tr>
			<tr>
				<td colspan="5" align="center">
					<input type="button" onclick="navigation()" value="统计各个类别底下的书籍数量">
					<input type="reset" value="取消">
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>